package me.sulong;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.orm.jpa.JpaTransactionManager;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@EnableTransactionManagement
@Configuration
public class HibernateTxManagerConfig extends BaseSpringConfig{

    @Bean
    JpaTransactionManager txManager() {
        return new JpaTransactionManager(emf().getObject());
    }

}
